import { Component, OnInit } from '@angular/core';
import { AuditBaseComponent } from './audit.base.component';

@Component({
  selector: 'app-audit',
  templateUrl: './audit.component.html',
  styleUrls: ['./audit.component.scss']
})
export class AuditComponent extends AuditBaseComponent implements OnInit {
  
  constructor() {
    super();
  }

  ngOnInit() {
  }

  show() {
    this.auditVisible = true;
  }

  hide() {
    this.auditVisible = false;
  }
  cancel() {
    this.auditVisible = false;
    this.currState$.next({
      isConfirm: false,
      formData: {}
    });
  }
  confirm() {
    this.auditVisible = false;
    this.currState$.next({
      isConfirm: true,
      formData: this.formData
    });
  }

}
